<template>
  <div>
    <Address></Address>
    <ToOrder2 :multiple-selection="goods"></ToOrder2>
  </div>
</template>

<script>
import Address from "@/views/pay/toPay/Address"
import ToOrder2 from "@/views/pay/toPay/ToOrder2"

export default {
  name: "ToPayBuy",
  components: {Address, ToOrder2},
  date() {
    return {
      goods: [],
    }
  },
  created() {
    this.goods = this.$route.query.selected;
    if (this.goods.length === 0) {
      return
    }
  }
}
</script>

<style scoped>

</style>